<template>
  <div class="home-background">
    <!--      头部-->
    <div class="search-header">
      <div class="back"><i class="el-icon-arrow-left back-icon"></i></div>
      <div class="search-box">
        <i class="el-icon-search top-icon"></i>
      </div>
    </div>
    <div class="choose-type">
      <div class="type">活动</div>
      <div class="type">用户</div>
      <div class="type">帖子</div>
      <div class="type">小组</div>
      <div class="type">展馆</div>
    </div>
    <!--        小组-->
    <div class="all-group">
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
      <div class="group">
        <div class="group-img">
          <img src="../../../assets/img/5.png">
        </div>
        <div class="group-info">
          <h3>硬笔书法</h3>
          <p>134个硬笔书法爱好者</p>
        </div>
        <div class="group-enter">
          <button class="group-enter-button">加入</button>
        </div>
      </div>
    </div>


  </div>
</template>

<script>
    export default {
        name: "search-group"
    }
</script>

<style scoped>
  .home-background{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
  }
  .search-header{
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    /*box-shadow: 0px 2px 1px rgba(215,215,215,.15);*/
  }
  .back{
    width: 40px;
    margin-left: 10px;
    margin-top: 5px;
    text-align: center;
  }
  .back-icon{
    color: #7f7f7f;
    font-size: 26px;
    /*margin-left: 7px;*/
    font-weight: bold;
  }
  .search-box{
    display: inline-block;
    flex: 1;
    background-color: #F2F2F2;
    border-radius: 20px;
    height: 35px;
    margin-top: 7px;
    margin-right: 10px;
  }
  .top-icon{
    color: #7f7f7f;
    font-size: 26px;
    margin-left: 7px;
    font-weight: bold;
  }
  .choose-type{
    display: flex;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    box-shadow: 0px 2px 1px rgba(215,215,215,.15);
  }
  .type{
    flex: 1;
    text-align: center;
  }

  .all-group{
    width: 100%;
    height: auto;
    background-color: #F2F2F2;
  }
  .group{
    width: 100%;
    height: 80px;
    background-color: white;
    margin-top: 10px;
    border-radius: 10px;
  }
  .group-img{
    display: inline-block;
    width: 80px;
    height: 100%;
  }
  .group-img img{
    width: 60px;
    height: 60px;
    border-radius: 35px;
    margin-top: 10px;
    margin-left: 20px;
  }
  .group-info{
    display: inline-block;
    flex: 1;
    height: 80px;
    margin-left: 20px;
    vertical-align: top;
    margin-top: 15px;

  }
  .group-info h3{
    color: #555555;
    margin-top: 0px;
    margin-bottom: 5px;
    vertical-align: top;
  }
  .group-info p{
    color: #7f7f7f;
    margin-top: 10px;
  }
  .group-enter{
    display: inline-block;
    vertical-align: top;
    width: 80px;
    height: 80px;
    text-align: center;
    margin-left: 10px;
    margin-right: 20px;
    float: right;
    line-height: 80px;
  }
  .group-enter-button{
    height: 30px;
    width: 80px;
    font-size: 10px;
    text-align: center;
    border: 1px solid #B0E3FF;
    background-color: #B0E3FF;
    color: white;
    border-radius: 15px;
    vertical-align: middle;
  }
</style>
